import axios from "axios";

const http = axios.create({
  baseURL: '/test'
})

http.interceptors.response.use((res) => {
  return res.data
}, (error) => {
  return error
})


export const submit = (data) => {
  return http.post("/login", data)
}

export default http;